# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
target 'AvatarShow' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
#
#   pod 'ZFDownload'
#   pod 'SSZipArchive'
#   pod 'TYSnapshotScroll'

   pod 'AFNetworking'
   pod 'Masonry'
   pod 'YYKit'
   pod 'MJRefresh'
   pod 'SDWebImage'
   
   #   pod 'UMCCommon'
   #   pod 'UMCSecurityPlugins'
   #   pod 'UMCPush'
   #   pod 'UMCCommonLog'
   #   pod 'UMCShare/Social/QQ'
   #   pod 'UMCShare/Social/WeChat'
   
   
      pod 'UMCommon'
      pod 'UMCCommonLog'
      pod 'UMDevice'
      pod 'UMLink'
#      pod 'UMShare/Social/QQ'
#      pod 'UMShare/Social/WeChat'
      pod 'UMAPM'
#   
#   pod 'Bytedance-UnionAD', '~> 3.1.0.5'
#   pod 'GDTMobSDK'
#other
  pod 'XDTextBtnView'
end

post_install do |installer|
  installer.aggregate_targets.each do |target|
copy_pods_resources_path = "Pods/Target Support Files/Pods-AvatarShow/Pods-AvatarShow-resources.sh"
string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
text = File.read(copy_pods_resources_path)
new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
end
end

